package com.xsp.entity;

import java.io.Serializable;
import java.util.List;

/**
 * book_type
 * @author 
 */
public class BookType implements Serializable {
    private Integer id;
    private String name;
    // 一对多关联映射，图书类别->图书信息
    List<BookInfo> bookInfoList;

    public List<BookInfo> getBookInfoList() {
        return bookInfoList;
    }

    public void setBookInfoList(List<BookInfo> bookInfoList) {
        this.bookInfoList = bookInfoList;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "BookType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}